The query returns a C string containing the name of style on which current style is based.Defining or editing a style. If you are defining or editing a style using the PStyleBegin command, PageMaker gets the style on which that style is based rather than the Based On style for the selected text.
PageMaker returns an empty string if:
PGetBasedOn basedOn;
if ((const char *) basedOn[0] != '\0')
cout << (const char *) basedOn;
Comments or suggestions? Contact Adobe Developer Support